<div id="item${i}" class="item-div row" <g:if test="${hidden}">style="display:none;"</g:if>>
    <g:hiddenField name='itemId' value='${item?.id}'/>
    <g:hiddenField name='labelId' value='${item?.label?.id}'/>
    <g:hiddenField name='deleted' value='false'/>
    <g:hiddenField name='version' value='${item?.version}'/>
    <g:hiddenField name='regLabel' value='${item?.label?.assigned}'/>
 
 	<div id="serial${i}" class="fieldcontain c3">
	 	<g:if test="${item?.label?.assigned}">
	 		<div class="label-display">${item?.label?.serialNumber}</div>
	 		<g:hiddenField name="serialNumber" value="${item?.label?.serialNumber}"/>
	 		<g:hiddenField name="confirmSerial" value="${item?.label?.serialNumber}"/>
	 	</g:if>
	 	<g:else>
			<div class="fieldcontain <g:hasErrors bean="${cmd}" field="serialNumber[${i}]">error</g:hasErrors> required">
				<span class="required-indicator">*</span>
		    	<g:textField name='serialNumber' value='${item?.label?.serialNumber}' hint="Label Serial #" />
		    </div>
			<div class="fieldcontain <g:hasErrors bean="${cmd}" field="confirmSerial[${i}]">error</g:hasErrors> required">
				<span class="required-indicator">*</span>
		    	<g:textField name='confirmSerial' value='${i == '-template' ? '' : (cmd?.confirmSerial ? cmd?.confirmSerial?.getAt(i) : item?.label?.serialNumber)}' hint="Confirm Label Serial #" />
	 		</div>
	 	</g:else>
 	</div>
	<div class="fieldcontain <g:hasErrors bean="${cmd}" field="name[${i}]">error</g:hasErrors> required c3">
		<span class="required-indicator">*</span>
	    <g:textField name="name" value="${item?.name}"  hint="Item Nickname"/>
    </div>
	<div class="fieldcontain <g:hasErrors bean="${cmd}" field="description[${i}]">error</g:hasErrors> required c4">
		<span class="required-indicator">*</span>
    	<g:textArea name="description" value="${item?.description}" hint="Item Description"></g:textArea>
	</div>    
 
    <span class="del-item c2">
        <img src="${resource(dir:'images/skin', file:'database_delete.png')}"
            style="vertical-align:middle; height: 30px;"/>
    </span>
</div>